Require: vim
Commands:
sudo apt update
sudo apt install x11vnc
sudo mkdir /etc/x11vnc
sudo vim /lib/systemd/system/x11vnc.service
[Unit]
Description=Start x11vnc at startup.
After=multi-user.target
[Service]
Type=simple
User=sun
ExecStart=/usr/bin/x11vnc -forever -noxdamage -repeat -rfbport 5900 -geometry 1280x720
Restart=always
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable x11vnc.service
sudo systemctl start x11vnc.service
Use ip a
to get server ip address.
Completed Server Settings
On Windows:
Download tightvnc java viewer
: https://www.tightvnc.com/download.php
Connect With server ip address.
Based on server has connected with a monitor
if your server has no monitor...
sudo apt-get install x11vnc xserver-xorg-video-dummy
sudo vim /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
touch /etc/X11/xorg.conf
Section "Monitor"
Identifier "Monitor0"
HorizSync 28.0-80.0
VertRefresh 48.0-75.0
Modeline "1280x720_60.00" 147.14 1680 1784 1968 2256 1050 1051 1054 1087 -HSync +Vsync
EndSection
Section "Device"
Identifier "Card0"
Driver "dummy"
VideoRam 256000
EndSection
Section "Screen"
DefaultDepth 24
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Depth 24
Modes "1280x720"
EndSubSection
EndSection